﻿// -----------------------------------------------------------------------
// <copyright file="Document_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using PMSGSC.DAL;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Certificate_BLL
    {

        public static List<Certificate> GetAll()
        {
            return Certificate_DAL.GetAll();
        }
        public static List<Certificate> GetCertificateOverDueList(int type)
        {
            return Certificate_DAL.GetCertificateOverDueList(type);
        }
        public static int GetQuantityCertificateDue(TypeCertificate certificateType)
        {
            return Certificate_DAL.GetQuantityCertificateDue(certificateType);
        }
        public static bool Insert(Certificate Certificate)
        {
            return Certificate_DAL.Insert(Certificate);
        }
        public static Certificate GetDataById(int id)
        {
            return Certificate_DAL.GetDataById(id);
        }
        public static bool Update(Certificate Certificate)
        {
            return Certificate_DAL.Update(Certificate);
        }
        public static bool Delete(Certificate Certificate)
        {
            return Certificate_DAL.Delete(Certificate);
        }
        public static bool IsExits(Certificate Certificate)
        {
            return Certificate_DAL.IsExits(Certificate);
        }
        public static List<Certificate> GetDataByShipID(int id, bool isChanged)
        {
            return Certificate_DAL.GetDataByShipID(id, isChanged);
        }
    }
}
